<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<style>
    div{
        width:300px;
        height:300px;
        background-color:pink; /*背景颜色*/
        background-image:url(img/0001.jpg);
        background-repeat:no-repeat; /*不平铺*/
        /* background-repeat:repeat-x; /*横向平铺*/
        /* background-repeat:repeat-y; 纵向平铺 */
        background-position:-1000px -3000px; /*背景的位置(移动)*/
        background-attachment: fixed; /*固定的背景*/

    }
</style>
<body>
    
    <div></div>
</body>
</html>